// 入口文件
import Vue from 'vue'



// 导入mui的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

// 按需导入mint-ui中的组件
import { Header, Swipe, SwipeItem} from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.component(Header.name, Header)

Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

// 1.3导入自己的router.js路由模块
import router from './router.js'

//2.1导入vue-resource
import VueResource from 'vue-resource'
//2.2安装vue-resoures
Vue.use(VueResource)

// 导入App跟组件
import app from './App.vue'


var vm = new Vue({
  el: '#app',
  render: c => c(app),
  router //1.4挂截路由对象到vm实力上
})
